package com.java.test3.finaldemo;

public class Teacher {
    //属性
	public final String teaName;
	public int teaAge;

    //构造方法
	public Teacher(String teaName, int teaAge) {

		this.teaName = teaName;
		this.teaAge = teaAge;
	}

	public Teacher() {
		super();
		this.teaName = "张三";
	}


	
    //getter，setter

	public int getTeaAge() {
		return teaAge;
	}

	public void setTeaAge(int teaAge) {
		this.teaAge = teaAge;
	}
	public String getTeaName() {
		return teaName;
	}
}
